import { IEnemy, IState } from "../../../Interface/State";
import BTTree from "../../Base/BTTree";
import ActionRun from "../ActionBoss2/ActionRun";
import CompositeSelector from "../Composite/CompositeSelector";
import CompositeSequence from "../Composite/CompositeSequence";
import ConditionalNoDead from "../Condition/ConditionalNoDead";

export default class Boss2Tree extends BTTree {
    constructor(
        public enemy: IEnemy,
        public state: IState,
    ) {
        super()
        this.init();
    }

    init() {
        this.root = new CompositeSequence([
            new ConditionalNoDead(this),

            new CompositeSelector([
                new ActionRun(this),
            ])
        ])
    }
}
